<%-- 
    Document   : return
    Created on : Apr 30, 2015, 9:42:26 PM
    Author     : prime
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<c:if test="${model.success()}">
    <!-- RECV_ORD_ID_${model.trxId}  -->
</c:if>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>汇付天下三方支付结果</title>
        <base href="${pageContext.request.scheme}://${header.host}${pageContext.request.contextPath}/"/>
    </head>
    <body>
        <div class="subText">本页面将在 <span id="countText"></span> 秒后自动关闭 <br><br>
            <a class="btn btn-small btn-primary" href="javascript:_close();">立即关闭</a></div>
        <script type="text/javascript">
            var _close = function () {
                window.open('', '_self', '');
                window.close();
            };

            var count = 5;
            document.getElementById("countText").innerHTML = count;
            var timer = setInterval(function () {
                count = count - 1;
                document.getElementById("countText").innerHTML = count;
                if (count == 0) {
                    _close();
                }
            }, 1000);
        </script>

    </body>
</html>
